package Ex615;

/**
 * @Description: 动物类
 */
public class Animal {
    int blood;
    String name;

    public Animal() {
        this.blood = 100;
    }

    public void setBlood(int _blood) {
        this.blood = _blood;
    }

    public int getBlood() {
        return this.blood;
    }

    public void bite(Animal a) {
        System.out.println(this.name + " bite " + a.name);
    }

    public void bite(Animal a, int hurt) {
        System.out.println(this.name + " bite " + a.name);
    }
}